﻿@model NotesVaultOnline.Data.Models.UserSignIn

@{
    ViewBag.Title = "Sign In";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm())
{
    <div class="novo-form">

        @if (Model.Result != null)
        {
            if (Model.Result.Type == NotesVaultOnline.Data.Models.CustomResult.ResultType.Error)
            {
            <div class="control-group">
                <span class="alert alert-error btn-block">@Model.Result.Message</span>
            </div>
            }
        }
        <div class="control-group">
            <div class="clearfix">
                @Html.LabelFor(m => m.Email, new { @class = "pull-left thick" })
                @Html.ValidationMessageFor(m => m.Email, null, new { @class = "label label-important pull-right" })
            </div>
            @Html.TextBoxFor(m => m.Email, new { @class = "btn-block", placeholder = "Your email address here..." })
        </div>
        <div class="control-group">
            <div class="clearfix">
                @Html.LabelFor(m => m.Password, new { @class = "pull-left thick" })
                @Html.ValidationMessageFor(m => m.Password, null, new { @class = "label label-important pull-right" })
            </div>
            @Html.PasswordFor(m => m.Password, new { @class = "btn-block", placeholder = "Your password address here..." })
        </div>
        <div class="control-group">
            <input type="submit" class="btn btn-primary btn-large btn-block" data-loading-text="Signing In..." value="Sign In" />
        </div>
        <div class="control-group">
            @Html.ActionLink("Forgot password?", "Forgot", "User", null, new { @class = "btn-block" })
        </div>
        <div class="control-group">
            @Html.ActionLink("Register", "Register", "User", null, new { @class = "btn-block" })
        </div>
    </div>
}

@*<div class="novo-form">
    <div class="control-group">
        <label for="txtEmail" class="thick" rel="tooltip" data-placement="right" data-original-title="Invalid email" data-trigger="manual" style="width: 60px">
            Email
        </label>
        <input type="text" id="txtEmail" class="btn-block">
    </div>
    <div class="control-group">
        <label for="txtPassword" class="thick" rel="tooltip" data-placement="right" data-original-title="Password is required" data-trigger="manual" style="width: 107px">
            Password
        </label>
        <input type="password" id="txtPassword" class="btn-block">
    </div>
    <div class="control-group">
        <button type="button" id="btnLogin" class="btn btn-primary btn-large btn-block" data-loading-text="Signing in...">Sign In</button>
    </div>
    <div class="control-group">
        @Html.ActionLink("Forgot password?", "Forgot", "User", null, new { @class = "btn-block" })
    </div>
    <div class="control-group">
        @Html.ActionLink("Register", "Register", "User", null, new { @class = "btn-block" })
    </div>
</div>
*@
